<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AddBaseSupplierByMeituanSeackill extends Migrator
{
    public function up()
    {


        \app\model\BaseSupplier::findOrCreate([
            'code' =>'meituanMiaoSha',
            'serv_type' =>PRODUCT_SECKILL_SERV,
            'api_config' => '{"apikey":"b4KcJ6tiDX6wE1t7","utmSource":"84478","promotionId":39297}',
            'name' => '美团秒杀'
        ]);

    }

    public function down()
    {


        \app\model\BaseSupplier::where('code','meituanMiaoSha')->delete();
    }
}
